package mediator.source;

/**
 * @author Chen Guang
 * @date 2019/4/24 0024 下午 17:41
 */
public class Test {
    public static void main(String[] args) {
        Mediator mediator = new ConcreteMediator();
        Colleague colleagueA = new ConcreteColleagueA(mediator);
        Colleague colleagueB = new ConcreteColleagueB(mediator);

        colleagueA.sendMsg("吃过饭了吗", colleagueB);
        colleagueB.sendMsg("没有呢，你请客吗？", colleagueA);
    }
}
